<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        document.write("6")
        //git init
        //git config --global user.name "minerva"
        //git config --global user.email "15948934+momossssss@user.noreply.gitee.com"
        // git remote add origin https://gitee.com/momossssss/demo_-js.git
        //git push -u origin "master"


        //数组过滤函数filter
        let arr=["1","2","3","666"]
        let res=arr.filter((a,b,c)=>{
            return a.length===3
        })
        console.log(res)
        //查找find
        let res0=arr.find((value,index,obj)=>{
            return value.length===3
        })
        console.log(res0)
        //map
        let arr1=["星期一","星期二","星期三","星期四","星期五"]
        let res1=arr1.map((value,index,obj)=>{
            if(value==="星期四"){
                return "疯狂"+value+"v我50"
            }
            else{
                return value+"想放假"
            }
        })
        console.log(res1)
    </script>
</body>
</html>